using Universal.Domain.Enums;
namespace Universal.Domain.Entities.App;

public class AppArticle : EntityBase
{
    public string Title { get; set; } = string.Empty;
    public string? Content { get; set; }
    public string? Summary { get; set; } //文章摘要

    // 文章状态，使用枚举，默认是草稿
    public ArticleStatus Status { get; set; } = ArticleStatus.Draft;

    // 标签字段
    public string? Tags { get; set; } // 标签，用逗号分隔
    //分类ID
    public Guid? CategoryId { get; set; }
    public AppArticleCategory? Category { get; set; }

    public Guid? UserId { get; set; }
    public AppUser? User { get; set; }
}